import request from '@/utils/request'

// 查询试题题组关系列表
export function listQuestionGroupRelation(query) {
  return request({
    url: '/examination/questionGroupRelation/list',
    method: 'get',
    params: query
  })
}

// 查询试题题组关系详细
export function getQuestionGroupRelation(questionGroupId) {
  return request({
    url: '/examination/questionGroupRelation/' + questionGroupId,
    method: 'get'
  })
}

// 新增试题题组关系
export function addQuestionGroupRelation(data) {
  return request({
    url: '/examination/questionGroupRelation',
    method: 'post',
    data: data
  })
}

// 修改试题题组关系
export function updateQuestionGroupRelation(data) {
  return request({
    url: '/examination/questionGroupRelation',
    method: 'put',
    data: data
  })
}

// 删除试题题组关系
export function delQuestionGroupRelation(questionGroupId) {
  return request({
    url: '/examination/questionGroupRelation/' + questionGroupId,
    method: 'delete'
  })
}
